<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>Class Baidu\Duer\Botsdk\Request</title>

	<link rel="stylesheet" href="resources/style.css?c2f33731c1948fbed7c333554678bfa68d4817da">

</head>

<body>
<div id="left">
	<div id="menu">
		<a href="index.html" title="Overview"><span>Overview</span></a>


		<div id="groups">
				<h3>Namespaces</h3>
			<ul>
				<li class="active">
					<a href="namespace-Baidu.html">
						Baidu<span></span>
					</a>

						<ul>
				<li class="active">
					<a href="namespace-Baidu.Duer.html">
						Duer<span></span>
					</a>

						<ul>
				<li class="active">
					<a href="namespace-Baidu.Duer.Botsdk.html">
						Botsdk<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-Baidu.Duer.Botsdk.Card.html">
						Card					</a>

						</li>
				<li>
					<a href="namespace-Baidu.Duer.Botsdk.Directive.html">
						Directive<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-Baidu.Duer.Botsdk.Directive.AppLauncher.html">
						AppLauncher					</a>

						</li>
				<li>
					<a href="namespace-Baidu.Duer.Botsdk.Directive.AudioPlayer.html">
						AudioPlayer					</a>

						</li>
				<li>
					<a href="namespace-Baidu.Duer.Botsdk.Directive.WebBrowser.html">
						WebBrowser					</a>

						</li>
							</ul></li>
				<li>
					<a href="namespace-Baidu.Duer.Botsdk.Plugins.html">
						Plugins					</a>

						</li>
							</ul></li></ul></li></ul></li>
			</ul>
		</div>

		<hr>


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-Baidu.Duer.Botsdk.Bot.html">Bot</a></li>
				<li><a href="class-Baidu.Duer.Botsdk.Certificate.html">Certificate</a></li>
				<li><a href="class-Baidu.Duer.Botsdk.Intercept.html">Intercept</a></li>
				<li><a href="class-Baidu.Duer.Botsdk.Log.html">Log</a></li>
				<li><a href="class-Baidu.Duer.Botsdk.Nlu.html">Nlu</a></li>
				<li class="active"><a href="class-Baidu.Duer.Botsdk.Request.html">Request</a></li>
				<li><a href="class-Baidu.Duer.Botsdk.Response.html">Response</a></li>
				<li><a href="class-Baidu.Duer.Botsdk.Session.html">Session</a></li>
			</ul>


			<h3>Traits</h3>
			<ul>
				<li><a href="class-Baidu.Duer.Botsdk.DataObject.html">DataObject</a></li>
			</ul>



		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
<div id="rightInner">
	<form id="search">
		<input type="hidden" name="cx" value="">
		<input type="hidden" name="ie" value="UTF-8">
		<input type="text" name="q" class="text" placeholder="Search">
	</form>

	<div id="navigation">
		<ul>
			<li>
				<a href="index.html" title="Overview"><span>Overview</span></a>
			</li>
			<li>
				<a href="namespace-Baidu.Duer.Botsdk.html" title="Summary of Baidu\Duer\Botsdk"><span>Namespace</span></a>
			</li>
			<li class="active">
<span>Class</span>			</li>
		</ul>
		<ul>
		</ul>
		<ul>
		</ul>
	</div>

<div id="content" class="class">
	<h1>Class Request</h1>











	<div class="info">
		
		
		<b>Namespace:</b> <a href="namespace-Baidu.html">Baidu</a>\<a href="namespace-Baidu.Duer.html">Duer</a>\<a href="namespace-Baidu.Duer.Botsdk.html">Botsdk</a><br>
		

			<b>Located at</b> <a href="source-class-Baidu.Duer.Botsdk.Request.html#22-303" title="Go to source code">Request.php</a>
		<br>
	</div>



	<table class="summary methods" id="methods">
	<caption>Methods summary</caption>
	<tr data-order="getData" id="_getData">

		<td class="attributes"><code>
			 public 

			array
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getData">#</a>
		<code><a href="source-class-Baidu.Duer.Botsdk.Request.html#59-66" title="Go to source code">getData</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			



				<h4>Returns</h4>
				<div class="list">
					array
				</div>


				<h4>Desc</h4>
				<div class="list">
						返回request 请求体<br>
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="getSession" id="_getSession">

		<td class="attributes"><code>
			 public 

			<code><a href="class-Baidu.Duer.Botsdk.Session.html">Baidu\Duer\Botsdk\Session</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getSession">#</a>
		<code><a href="source-class-Baidu.Duer.Botsdk.Request.html#68-75" title="Go to source code">getSession</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			



				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-Baidu.Duer.Botsdk.Session.html">Baidu\Duer\Botsdk\Session</a></code>
				</div>


				<h4>Desc</h4>
				<div class="list">
						返回session实例<br>
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="getNlu" id="_getNlu">

		<td class="attributes"><code>
			 public 

			<code><a href="class-Baidu.Duer.Botsdk.Nlu.html">Baidu\Duer\Botsdk\Nlu</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getNlu">#</a>
		<code><a href="source-class-Baidu.Duer.Botsdk.Request.html#77-84" title="Go to source code">getNlu</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			



				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-Baidu.Duer.Botsdk.Nlu.html">Baidu\Duer\Botsdk\Nlu</a></code>
				</div>


				<h4>Desc</h4>
				<div class="list">
						返回nlu实例<br>
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="getDeviceData" id="_getDeviceData" class="deprecated">

		<td class="attributes"><code>
			 public 

			<code><a href="class-Baidu.Duer.Botsdk.Nlu.html">Baidu\Duer\Botsdk\Nlu</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getDeviceData">#</a>
		<code><a href="source-class-Baidu.Duer.Botsdk.Request.html#87-95" title="Go to source code">getDeviceData</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			

				<h4>Deprecated</h4>
				<div class="list">
				</div>


				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-Baidu.Duer.Botsdk.Nlu.html">Baidu\Duer\Botsdk\Nlu</a></code>
				</div>


				<h4>Desc</h4>
				<div class="list">
						返回设备信息<br>
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="getDeviceId" id="_getDeviceId">

		<td class="attributes"><code>
			 public 

			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getDeviceId">#</a>
		<code><a href="source-class-Baidu.Duer.Botsdk.Request.html#97-105" title="Go to source code">getDeviceId</a>( )</code>

		<div class="description short">
			<p>获取设备id</p>
		</div>

		<div class="description detailed hidden">
			<p>获取设备id</p>



				<h4>Returns</h4>
				<div class="list">
					string
				</div>


				<h4>Desc</h4>
				<div class="list">
						获取设备id<br>
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="getAudioPlayerContext" id="_getAudioPlayerContext">

		<td class="attributes"><code>
			 public 

			array
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getAudioPlayerContext">#</a>
		<code><a href="source-class-Baidu.Duer.Botsdk.Request.html#107-116" title="Go to source code">getAudioPlayerContext</a>( )</code>

		<div class="description short">
			<p>获取设备音频播放的状态</p>
		</div>

		<div class="description detailed hidden">
			<p>获取设备音频播放的状态</p>



				<h4>Returns</h4>
				<div class="list">
					array
				</div>


				<h4>Desc</h4>
				<div class="list">
						获取设备音频播放的状态<br>
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="getAppLauncherContext" id="_getAppLauncherContext">

		<td class="attributes"><code>
			 public 

			array
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getAppLauncherContext">#</a>
		<code><a href="source-class-Baidu.Duer.Botsdk.Request.html#119-128" title="Go to source code">getAppLauncherContext</a>( )</code>

		<div class="description short">
			<p>获取设备app安装列表</p>
		</div>

		<div class="description detailed hidden">
			<p>获取设备app安装列表</p>



				<h4>Returns</h4>
				<div class="list">
					array
				</div>


				<h4>Desc</h4>
				<div class="list">
						获取设备app安装列表<br>
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="getEventData" id="_getEventData">

		<td class="attributes"><code>
			 public 

			array
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getEventData">#</a>
		<code><a href="source-class-Baidu.Duer.Botsdk.Request.html#130-145" title="Go to source code">getEventData</a>( )</code>

		<div class="description short">
			<p>获取event请求</p>
		</div>

		<div class="description detailed hidden">
			<p>获取event请求</p>



				<h4>Returns</h4>
				<div class="list">
					array
				</div>


				<h4>Desc</h4>
				<div class="list">
						返回event request数据<br>
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="getUserInfo" id="_getUserInfo" class="deprecated">

		<td class="attributes"><code>
			 public 

			array
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getUserInfo">#</a>
		<code><a href="source-class-Baidu.Duer.Botsdk.Request.html#147-154" title="Go to source code">getUserInfo</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			

				<h4>Deprecated</h4>
				<div class="list">
				</div>


				<h4>Returns</h4>
				<div class="list">
					array
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="getType" id="_getType">

		<td class="attributes"><code>
			 public 

			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getType">#</a>
		<code><a href="source-class-Baidu.Duer.Botsdk.Request.html#156-164" title="Go to source code">getType</a>( )</code>

		<div class="description short">
			<p>获取request类型</p>
		</div>

		<div class="description detailed hidden">
			<p>获取request类型</p>



				<h4>Returns</h4>
				<div class="list">
					string
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="getUserId" id="_getUserId">

		<td class="attributes"><code>
			 public 

			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getUserId">#</a>
		<code><a href="source-class-Baidu.Duer.Botsdk.Request.html#167-175" title="Go to source code">getUserId</a>( )</code>

		<div class="description short">
			<p>获取用户id</p>
		</div>

		<div class="description detailed hidden">
			<p>获取用户id</p>



				<h4>Returns</h4>
				<div class="list">
					string
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="getCuid" id="_getCuid" class="deprecated">

		<td class="attributes"><code>
			 public 

			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getCuid">#</a>
		<code><a href="source-class-Baidu.Duer.Botsdk.Request.html#177-185" title="Go to source code">getCuid</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			

				<h4>Deprecated</h4>
				<div class="list">
				</div>


				<h4>Returns</h4>
				<div class="list">
					string
				</div>


				<h4>Desc</h4>
				<div class="list">
						获cuid<br>
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="getQuery" id="_getQuery">

		<td class="attributes"><code>
			 public 

			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getQuery">#</a>
		<code><a href="source-class-Baidu.Duer.Botsdk.Request.html#188-200" title="Go to source code">getQuery</a>( )</code>

		<div class="description short">
			<p>获取query</p>
		</div>

		<div class="description detailed hidden">
			<p>获取query</p>



				<h4>Returns</h4>
				<div class="list">
					string
				</div>


				<h4>Desc</h4>
				<div class="list">
						获取当前请求的query<br>
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="getLocation" id="_getLocation">

		<td class="attributes"><code>
			 public 

			array
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getLocation">#</a>
		<code><a href="source-class-Baidu.Duer.Botsdk.Request.html#203-214" title="Go to source code">getLocation</a>( )</code>

		<div class="description short">
			<p>获取地址</p>
		</div>

		<div class="description detailed hidden">
			<p>获取地址</p>



				<h4>Returns</h4>
				<div class="list">
					array
				</div>


				<h4>Desc</h4>
				<div class="list">
						获取当前用户设备的位置信息。具体协议参考连接TODO<br>
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="isLaunchRequest" id="_isLaunchRequest">

		<td class="attributes"><code>
			 public 

			boolean
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_isLaunchRequest">#</a>
		<code><a href="source-class-Baidu.Duer.Botsdk.Request.html#216-225" title="Go to source code">isLaunchRequest</a>( )</code>

		<div class="description short">
			<p>是否为调起bot</p>
		</div>

		<div class="description detailed hidden">
			<p>是否为调起bot</p>



				<h4>Returns</h4>
				<div class="list">
					boolean
				</div>


				<h4>Desc</h4>
				<div class="list">
						是否为调起bot请求<br>
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="isSessionEndRequest" id="_isSessionEndRequest" class="deprecated">

		<td class="attributes"><code>
			 public 

			boolean
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_isSessionEndRequest">#</a>
		<code><a href="source-class-Baidu.Duer.Botsdk.Request.html#227-234" title="Go to source code">isSessionEndRequest</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			

				<h4>Deprecated</h4>
				<div class="list">
				</div>


				<h4>Returns</h4>
				<div class="list">
					boolean
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="isSessionEndedRequest" id="_isSessionEndedRequest">

		<td class="attributes"><code>
			 public 

			boolean
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_isSessionEndedRequest">#</a>
		<code><a href="source-class-Baidu.Duer.Botsdk.Request.html#236-244" title="Go to source code">isSessionEndedRequest</a>( )</code>

		<div class="description short">
			<p>是否为关闭bot请求</p>
		</div>

		<div class="description detailed hidden">
			<p>是否为关闭bot请求</p>



				<h4>Returns</h4>
				<div class="list">
					boolean
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="getTimestamp" id="_getTimestamp">

		<td class="attributes"><code>
			 public 

			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getTimestamp">#</a>
		<code><a href="source-class-Baidu.Duer.Botsdk.Request.html#246-253" title="Go to source code">getTimestamp</a>( )</code>

		<div class="description short">
			<p>获取请求的时间戳</p>
		</div>

		<div class="description detailed hidden">
			<p>获取请求的时间戳</p>



				<h4>Returns</h4>
				<div class="list">
					string
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="getLogId" id="_getLogId" class="deprecated">

		<td class="attributes"><code>
			 public 

			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getLogId">#</a>
		<code><a href="source-class-Baidu.Duer.Botsdk.Request.html#255-264" title="Go to source code">getLogId</a>( )</code>

		<div class="description short">
			<p>获取log_id</p>
		</div>

		<div class="description detailed hidden">
			<p>获取log_id</p>

				<h4>Deprecated</h4>
				<div class="list">
				</div>


				<h4>Returns</h4>
				<div class="list">
					string
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="getBotId" id="_getBotId">

		<td class="attributes"><code>
			 public 

			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getBotId">#</a>
		<code><a href="source-class-Baidu.Duer.Botsdk.Request.html#266-274" title="Go to source code">getBotId</a>( )</code>

		<div class="description short">
			<p>获取botid</p>
		</div>

		<div class="description detailed hidden">
			<p>获取botid</p>



				<h4>Returns</h4>
				<div class="list">
					string
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="isDialogStateCompleted" id="_isDialogStateCompleted">

		<td class="attributes"><code>
			 public 

			boolean
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_isDialogStateCompleted">#</a>
		<code><a href="source-class-Baidu.Duer.Botsdk.Request.html#276-287" title="Go to source code">isDialogStateCompleted</a>( )</code>

		<div class="description short">
			<p>槽位是否填完</p>
		</div>

		<div class="description detailed hidden">
			<p>槽位是否填完</p>



				<h4>Returns</h4>
				<div class="list">
					boolean
				</div>


				<h4>Desc</h4>
				<div class="list">
						<p>填槽型多轮，当槽位补充完整后
      如果设置了slot confirm或者intent confirm，这些都执行完成后
      对话状态设置为完成，这个函数判断是否为这个状态。</p><br>
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="__construct" id="___construct">

		<td class="attributes"><code>
			 public 

			null
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#___construct">#</a>
		<code><a href="source-class-Baidu.Duer.Botsdk.Request.html#289-302" title="Go to source code">__construct</a>( <span>array <var>$data</var></span> )</code>

		<div class="description short">
			<p>构造函数</p>
		</div>

		<div class="description detailed hidden">
			<p>构造函数</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$data</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					null
				</div>




		</div>
		</div></td>
	</tr>
	</table>


















</div>

	<div id="footer">
		 API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
</div>
<script src="resources/combined.js"></script>
<script src="elementlist.js"></script>
</body>
</html>
